﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace WindowsGame4
{
    class Animation
    {
        private ArrayList frames;
        private String id;
        public Boolean loop;

        public Animation(String id, Boolean loop)
        {
            frames = new ArrayList();
            this.id = id;
            this.loop = loop;
        }

        public void addFrame(Frame frame)
        {
            frames.Add(frame);
        }

        public int getNumFrames()
        {
            return frames.Count;
        }

        public Frame getFrame(int num)
        {
            return (Frame)frames[num];
        }
    }
}
